	<link 	type="text/css"	rel="stylesheet"	href="/assets/css/default.css" />
    <p style="margin:20px">
	<form id="form1" name="form1" class="easyui-form" method="post" data-options="novalidate:true" action ="">
		<table cellpadding="5" border="0">
			 <tr>
				<td style="width:80px" >名&ensp;称:</td>

				<td>
		   		    <input type="hidden"  name="id"    value="<?php echo $department['id'] ?>"  >
		   		    <input class="easyui-textbox easyui-validatebox"  type="text" id="name" name="name" data-options="required:true,novalidate:true" validType=""  missingMessage="请输入名称"    value="<?php echo $department['name'] ?>"  >
                		<span style="color:#ff2e2e">*</span>

	             </td>
	    	</tr>
    		<tr >
			<td align="left" >状&emsp;&emsp;态:</td>
			<td align="left" width="200">
					<input type="radio" name="status" value="1" <?php  if($department["status"]);echo  "checked" ?>>启用&ensp;&ensp;&ensp;<input type="radio" name="status" value="0"  <?php  if(!$department["status"]);echo  "checked" ?>>停用
             </td>
	    	</tr>
			 <tr>
				<td></td>
				<td style="text-align:center;padding:15px">
		   				<span id="msg"></span>
	             </td>
	    	</tr>
		    <tr >
				<td  colspan="2" style="text-align:center;padding:5px">
	   	   				<a href="javascript:void(0)" class="easyui-linkbutton c9" style="width:80%" onclick="submitForm()">提            交</a>
	             </td>
	    	</tr>
	    	 <tr>
				<td></td>
				<td style="text-align:center;padding:5px">
		   				<span id="msg"></span>

	             </td>
	    	</tr>

		</table>
   </form>

	<script type="text/javascript">

       	function submitForm(){

       					$('#form1').form('submit',{
							onSubmit:function(){
								var arr=new Array();
						        arr.push(new Array('name','textbox'));
						        if(validate_arr(arr)){
									var url = "<?php echo $action_url ?>";
								     $.ajax({
										   type: "POST",
										   url:url,
										   dataType:"json",
										   data:$("#form1").serialize(),
										   success: function(msg){
											      var index = parent.layer.getFrameIndex(window.name);
												  parent.layer.msg(msg.info, {
														    icon: 1,  //1 成功 ,0 失败
														    time: 2000　//２　秒
														});
												  //parent.$("#myframe_34")[0].contentWindow.user_reload();
												  parent.layer.close(index);


										   }
									});
						        }

							}
					 	});


		}

</script>

</body>
</html>